<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('index')}">已发布</a></li>
        <li class="active"><a>详情</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('doedit')}">



        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>所属项目
            </label>
            <div class="col-md-6 col-sm-10">
                <select name="eid" class="form-control">
                    <option value="{$res['eid']}">{$res['lname']}</option>
                    <volist name="setd" id="v">
                        <option value={$v.id}">{$v.name}</option>
                    </volist>
                </select>
            </div>
        </div>


        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>事件描述
            </label>
            <div class="col-md-6 col-sm-10">
                <textarea name="desc" class="form-control" cols="10" rows="5">{$res['desc']}</textarea>
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>图片
            </label>
            <div class="col-md-6 col-sm-10">
                <volist name="res['imgs']" id="v">
                    <img src="{$v}" style="margin-bottom: 10px">
                </volist>
            </div>
        </div>
        <?php if($res['restatus'] > 0){?>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">驳回理由
            </label>
            <div class="col-md-6 col-sm-10">
                <textarea name="refound" class="form-control" cols="10" rows="5">{$res['refound']}</textarea>
            </div>
        </div>
        <?php }?>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>